<?php
/**
{
    "qrTemplateId": "INT //模板ID@search; ",
    "img": "VARCHAR //模板图片750X1100@image; ",
    "templateName": "VARCHAR //模板名称@search; ",
    "status": "TINYINT //状态@status; 3::有效::@admin; 88::删除::@admin; ",
    "created": "DATETIME //创建时间@noLoad; @noList; @noView; "
}
 */

class QrTemplate extends Base
{
    
	private $qrTemplateId= '';//模板ID@search;
	private $img= NULL;//模板图片750X1100@image;
	private $templateName= NULL;//模板名称@search;
	private $status= "3";//状态@status;3::有效::@admin;88::删除::@admin;
	private $created= 'CURRENT_TIMESTAMP';//创建时间@noLoad;@noList;@noView;

    public $isDbData = false;

    public function __construct()
    {
        parent::__construct();
    }


    public function __get($name) {
        return $this->$name;
    }

    public function __set($name, $value) {
        if(!$this->isDbData){
            if(!in_array($name,$this->loadedFiled))$this->loadedFiled[] = $name;
        }

        $this->$name=$value;
        $this->arr[$name] = $value;
    }

    public  function table()
    {
        return 'tbl_qr_template';
    }
    
    public  function key(){
        return 'qrTemplateId';
    }


    
    public static  function hideField()
    {
        return [];
    }
            
    public static  function skipField()
    {
        return [];
    }
            
    public static  function noViewField()
    {
        return array (  0 => 'created',);
    }
            
    public static  function jsonField()
    {
        return [];
    }
            
    public static  function noLoadField()
    {
        return array (  0 => 'created',);
    }
            
    public static  function deleteField()
    {
        return [];
    }
            
    public function className()
    {
        return 'QrTemplate';
    }
    
    public  function field()
    {
        return array (  'qrTemplateId' =>   array (    0 => 'INT',    1 => 11,    2 => '模板ID@search;',  ),  'img' =>   array (    0 => 'VARCHAR',    1 => 512,    2 => '模板图片750X1100@image;',  ),  'templateName' =>   array (    0 => 'VARCHAR',    1 => 100,    2 => '模板名称@search;',  ),  'status' =>   array (    0 => 'TINYINT',    1 => 4,    2 => '状态@status;3::有效::@admin;88::删除::@admin;',  ),  'created' =>   array (    0 => 'DATETIME',    1 => 0,    2 => '创建时间@noLoad;@noList;@noView;',  ),);
    }


}